<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="__PUBLIC__/bs/css/bootstrap.min.css">
	<link rel="stylesheet" href="../Public/css/index.css"><!--首页-->
	<link rel="stylesheet" href='../Public/css/shop.css'><!--商品详情-->
	<link rel="stylesheet" href='../Public/css/person.css'><!-- 个人中心 -->
	<script src="__PUBLIC__/bs/js/bootstrap.min.js"></script>
	<script src="__PUBLIC__/bs/js/jquery.js"></script>
</head>
<body>

	<div class="container">
		<!-- 登陆注册 -->
		<div class="top" style="margin-bottom: 1px;">
			<div class="left">
				<ul class='list-inline'>
				<li><a href="<?php echo U('Index/index');?>"><img src="../Public/image/top.png" style="height:28px;" alt=""></a></li>
				</ul>
			</div>
			<div class="right">
				<ul class="list-inline">
					<?php if($_SESSION['home_username']): ?><li>欢迎<?php echo ($_SESSION['home_username']); ?></li>
						<li><a href="<?php echo U('Login/logout');?>">退出</a></li>
					<?php else: ?>
						<li>请先 <a href="<?php echo U('Login/index');?>" style='color:red;'>登陆</a></li><?php endif; ?>
					<li><a href="<?php echo U('Person/index');?>">个人中心</a></li>
					<li><a href="<?php echo U('ShopCart/index');?>">购物车</a></li>
				</ul>
			</div>
		</div>
		<!-- 登陆注册   结束-->
		
	<!-- 页面详情 -->
	<div class="panel panel-primary">
	  <div class="panel-heading">
	  	<div class="row">
	  		<h3 class="col-md-2 panel-title">个人中心</h3>
	  	</div>
	  </div>
	  <div class="panel-body ">
			<div class="row">
				<div class="PersonList col-md-3">
					<ul class="list-group">
						<li class="list-group-item"><a href="<?php echo U('Person/touch');?>">查看联系方式</a></li>
						<li class="list-group-item"><a href="<?php echo U('Person/addTouch');?>" style="background: #5BC0DE;">添加联系方式</a></li>
						<li class="list-group-item"><a href="<?php echo U('Person/orderList');?>">查看订单</a></li>
					</ul>
				</div>
				<div class="detail col-md-9">
					<form class="form-horizontal addTouch" action="<?php echo U('Person/addTouchhandle');?>" method='post'>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">姓名</label>
					    <div class="col-sm-8">
					      <input type="text" class="form-control" name="name"  placeholder="姓名">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">电话</label>
					    <div class="col-sm-8">
					      <input type="text" class="form-control" name="tel"  placeholder="电话">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">地址</label>
					    <div class="col-sm-8">
					      <input type="text" class="form-control"  name="add" placeholder="地址">
					    </div>
					  </div>
					  <div class="form-group">
					    <label  class="col-sm-2 control-label">邮箱</label>
					    <div class="col-sm-8">
					      <input type="text" class="form-control" name="email"  placeholder="邮箱">
					    </div>
					  </div>
					  <div class="form-group">
					    <div class="col-sm-offset-2 col-sm-2">
					      <button type="submit" class="btn btn-primary">确定</button>
					      <button type="reset" class="btn btn-danger">取消</button>
					    </div>
					  </div>
					</form>
				</div>
			</div>
	  </div>
	</div>
	<!-- 页面详情   结束-->

		<!-- 页面底部 -->
		<div class="footer">
			<div class="row">
				<ul class="list-inline">
					<li class="col-md-3"><a href="">联系方式</a></li>
					<li class="col-md-3"><a href="">公司介绍</a></li>
					<li class="col-md-3"><a href="">公司地图</a></li>
					<li class="col-md-3"><a href="">合作伙伴</a></li>
				</ul>
			</div>
			
		</div>
		<!-- 页面底部  结束 -->
	</div>
</body>
<script>

$(function(){
	// 关闭广告按钮
	$('.ad .circle').click(function(){
		$('.ad').hide(350);
	})
	$('.l_ad .circle').click(function(){
		$('.l_ad').hide(350);
	})
})


</script>
</html>